package com.yzl.meeting.framework.core.io;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

/**
 * @Title: FileSystemResource
 * @Author: 姚志立
 * @Description:
 * @Date: 2020/10/20 16:46
 * @Version: 1.0
 */
public class FileSystemResource implements Resource{
    private String fileName;

    public FileSystemResource(String fileName) {
        this.fileName = fileName;
    }

    @Override
    public InputStream getInputStream() throws IOException {
        FileInputStream inputStream = new FileInputStream(fileName);
        return inputStream;
    }
}
